// 对外暴露配置路由（常量路由）全部用户可以访问
// 对外暴露配置路由（常量路由）全部用户可以访问
export const constantRoute = [
    // 登录
    {
      path: '/login',
      component: () => import('@/views/login/index.vue'),
      name: 'login',
      meta: {
        title: '登录', //菜单标题
        hidden: true, //代表路由标题在菜单中是否隐藏  true:隐藏 false:不隐藏
      },
    },
    {
      //  登录成功展示数据的路由
      path: '/',
      component: () => import('@/layout/index.vue'),
      name: 'home',
      meta: {
        title: '首页',
        hidden: false,
      },
      children:[{
        path: '/home',
        component: () => import('@/views/home/index.vue'),
        name: 'home',
        meta: {
          title: '首页',
          hidden: false,
          icon: 'PieChart',
        },
    
  },
]
    },
    {
      path: '/order',
      component: () => import('@/layout/index.vue'),
      meta: {
        title: '订单页面',
        hidden: false,
      },
      children:[{
        path: '/order',
        component: () => import('@/views/orders/index.vue'),
        name: 'order',
        meta: {
          title: '订单页面',
          hidden: false,
          icon: 'PieChart',
        },
    
  },
]
    },
    
    {
      path: '/dishes',
      component: () => import('@/layout/index.vue'),
      meta: {
        title: '套餐页面',
        hidden: false,
      },
      children:[{
        path: '/dishes',
        component: () => import('@/views/Dishes/index.vue'),
        name: 'dishes',
        meta: {
          title: '套餐页面',
          hidden: false,
          icon: 'PieChart',
        },
    
  },
]
    },
    {
      path: '/category',
      component: () => import('@/layout/index.vue'),
      name: 'category',
      meta: {
        hidden: false,
        title: '分类',
      },
      children:[{
        path: '/category',
        component: () => import('@/views/category/index.vue'),
        name: 'category',
        meta: {
          title: '分类',
          hidden: false,
          icon: 'PieChart',
        },
    
  },
]
    },
    {
      path: '/employee',
      component: () => import('@/layout/index.vue'),
      name: 'employee',
      meta: {
        hidden: false,
        title: '员工管理',
      },
      children:[{
        path: '/employee',
        component: () => import('@/views/employee/index.vue'),
        name: 'employee',
        meta: {
          title: '员工管理',
          hidden: false,
          icon: 'PieChart',
        },
    
  },
]
    },
  ]
  